string_matrix_format
Syntax:
string_matrix_format(matrix, tot, dec)
Arguments:
Argument Name | Type | Description |
---|---|---|
matrix | matrix | matrix to convert |
tot | real | The total number of places of the main number to be shown |
dec | real | The number of decimal places to be included |
Returns: (string)
Description:
Converts a matrix into an easily readable string with specific string formatting.
It is worth noting that the spacing method used to align the widths of each row in the matrix will not work when using GameMaker outputs such as show_message or show_debug_message. The reason for this is because the measurements used pull from the currently rendered font, not GameMaker's debugging font.